package nutritionboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;


//配置远程访问
//        编辑docker服务配置文件
//        sudo vim /lib/systemd/system/docker.service
//        找到如下配置
//        ExecStart=/usr/bin/dockerd
//        修改为
//        ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375
//重启docker网络
//        sudo systemctl daemon-reload
//        重启docker服务
//        sudo systemctl restart docker
//curl http://localhost:2375/verion
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan("com")
public class NutritionbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(NutritionbootApplication.class, args);
    }

}
